<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="http://www.petercorke.com/RVC/common/toolboxhelp.css">
    <title>M-File Help: idisplabel</title>
  </head>
  <body>
  <table border="0" cellspacing="0" width="100%">
    <tr class="subheader">
      <td class="headertitle">M-File Help: idisplabel</td>
      <td class="subheader-left"><a href="matlab:open idisplabel">View code for idisplabel</a></td>
    </tr>
  </table>
<h1>idisplabel</h1><p><span class="helptopic">Display an image with mask</span></p><span style="color:red>idisplabel</span>(<strong>im</strong>, <strong>labelimage</strong>, <strong>labels</strong>) displays only those image pixels which
belong to a specific class.  <strong>im</strong> is a greyscale NxM or color NxMx3 image, and
<strong>labelimage</strong> is an NxM image containing integer pixel class labels for the
corresponding pixels in <strong>im</strong>.  The pixel classes to be displayed are given by
the elements of <strong>labels</strong> which is a scalar a vector of class labels.
Non-selected pixels are displayed as white.

<span style="color:red>idisplabel</span>(<strong>im</strong>, <strong>labelimage</strong>, <strong>labels</strong>, <strong>bg</strong>) as above but the grey level of the
non-selected pixels is specified by <strong>bg</strong> in the range 0 to 1.

<h2>See also</h2>
<p>
<a href="matlab:doc iblobs">iblobs</a>, <a href="matlab:doc icolorize">icolorize</a>, <a href="matlab:doc colorseg">colorseg</a></p>
<hr>

<table border="0" width="100%" cellpadding="0" cellspacing="0">
  <tr class="subheader" valign="top"><td>&nbsp;</td></tr></table>
<p class="copy">&copy; 1990-2011 Peter Corke.</p>
</body></html>